<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MVVM模型</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="root">
    <h1>你好{{name}}</h1>
</div>
<script>
    // 关闭启动时的生产提示
    Vue.config.productionTip = false;
    const vm = new Vue({
        el: '#root',
        data: function () {
            return {
                name: 'jack',
            };
        }
    });
    // vm.$mount('#root');
</script>
</body>
</html>